<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">

<head>
  <?php print $head ?>
  <title><?php print $head_title ?></title>
  <?php print $styles ?>
  <?php print $scripts ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>

<body class="<?php print $body_classes; ?>">

<div class="header-wrapper">
	<div class="header" class="clear-block">
    <?php if ($logo) { ?>
			<div class="logo">
				<?php print $logo_link ?>
			</div>
		<?php } ?>

    <?php if ($site_name) { ?>
			<div class="site-name">
				<h1><?php print $front_page_link ?></h1>
			</div>
		<?php } ?>

    <?php if ($site_slogan) { ?>
			<div class='site-slogan'>
				<h2><?php print $site_slogan ?></h2>
			</div>
		<?php } ?>

    <?php if (isset($primary_links)) { ?>
      <div class="primary-links-wrapper">
        <?php print theme('links', $primary_links, array('class' => 'primary-links')) ?>
      </div>
    <?php } ?>

    <?php if (isset($secondary_links)) { ?>
      <div class="secondary-links-wrapper">
        <?php print theme('links', $secondary_links, array('class' => 'secondary-links')) ?>
      </div>
    <?php } ?>

    <?php print $search_box ?>
    <?php print $header ?>
	</div>
</div>

<div class="container-wrapper">
	<div class="container">
		<?php if ($left) { ?>
			<div class="sidebar sidebar-first"><?php print $left ?></div>
		<?php } ?>

		<div class="main">
			<div class="main-squeeze">
        <div class="main-content">
					<?php if ($mission) { ?><div class="mission"><?php print $mission ?></div><?php } ?>
		      <?php print $breadcrumb ?>
		      <?php if ($title) { ?><h1 class="title"><?php print $title ?></h1><?php } ?>
		      <?php if ($tabs) { ?><div class="tabs-wrapper"><?php print $tabs ?></div><?php } ?>
		      <?php if ($show_messages) { print $messages; } ?>
		      <?php print $help ?>
		      <?php print $content; ?>
		      <?php print $feed_icons; ?>
        </div>
			</div>
		</div>

		<?php if ($right) { ?>
			<div class="sidebar sidebar-second"><?php print $right ?></div>
		<?php } ?>
	</div>
</div>

<div class="footer-wrapper">
	<div class="footer">
		<div class="footer-block">
		  <?php print $footer_message ?>
		  <?php print $footer ?>
		</div>
	</div>
</div>

<?php print $closure ?>
</body>
</html>
